﻿// <copyright file="LocalizationString.cs" company="Marcin Wosik">
// Copyright (c) 2010 All Right Reserved
// </copyright>
// <author>Marcin Wosik</author>
// <email>mawo11@gmail.com</email>
// <date>2010-02-25</date>
// <summary></summary>
namespace GameOfLife.Helpers
{
    using System.ComponentModel;

    public class LocalizationString : INotifyPropertyChanged
    {
        #region Fields

        private static GameOfLife.Assets.Resources.ApplicationStrings _strings = new GameOfLife.Assets.Resources.ApplicationStrings();

        #endregion Fields

        #region Events

        public event PropertyChangedEventHandler PropertyChanged;

        #endregion Events

        #region Properties

        public GameOfLife.Assets.Resources.ApplicationStrings Strings
        {
            get
            {
                return _strings;
            }
            set
            {
                _strings = value;
                OnPropertyChanged("Strings");
            }
        }

        #endregion Properties

        #region Methods

        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion Methods
    }
}